﻿using System;
using System.Collections.Generic;

namespace ZKDevice
{
    /// <summary>
    /// fingerList 是一个固定长度为10的列表，索引依次从0开始，为null时，表示当前索引对应的位置没有指纹
    /// </summary>
    public class UserInfo
    {
        public long id { get; set; }
        public int fingerSize { get; set; }
        public int faceSize { get; set; }
        public string address { get; set; }
        public string deviceName { get; set; }
        public string state { get; set; }

        public int identifier { get; set; }
        public string name { get; set; }
        public List<byte[]> fingerList { get; set; }
        public byte[] face { get; set; }
        public String cardId { get; set; }

        public bool IsIdentifierValidRight()
        {
            return identifier > 0 && identifier < 65534;
        }
    }
}
